CC=gcc
CXX=g++
CFLAGS=-Wall -fPIC -g
LDFLAGS=-Wall -shared
ext_mod=.so
ENABLE_MYSQL=1
INC_MYSQL=-I/usr/include/mysql
LIB_MYSQL=-rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib/ -lssl -lcrypto
ENABLE_PYTHON=1
python_include=-I/usr/include/python2.6 -I/usr/include/python2.6
python_lib=-lpthread -ldl -lutil -lm -lpython2.6
ENABLE_HUNSPELL=1
HUNSPELL_LDFLAGS=-lhunspell-1.2
ENABLE_CXX=1
eval_cflags=-DLONG_DOUBLE
CXX_LDFLAGS=-lstdc++ -lm

all:
	+$(MAKE) pong users_modes admin alist auth auto ban uptime coding conseil contrepeterie ctcp 
	+$(MAKE) joinpart kick log modes_chans pasting say sysinfo topic info rejoin botinfo entree
	+$(MAKE) requete.o google trad tele compo raw modauth carac check_version talk dico telesoir extension
	+$(MAKE) friendbot unmd5 larva coda urbandico discours
	+$(MAKE) boggle videolink nicklen hlmoi mot_proche last5 bing
	+$(MAKE) sondes lists wikipedia synonyme noforcing allcompo reversemd5 get_bot_ip nioutaik bugmenot allocine
	+$(MAKE) slogan feedreader


ifdef ENABLE_CXX
	+$(MAKE) eval
endif

ifdef ENABLE_MYSQL	
	+$(MAKE) url_mysql quote_mysql idea_mysql url_grabber_mysql
endif

ifdef ENABLE_PYTHON
	+$(MAKE) bind_python
endif

ifdef ENABLE_HUNSPELL
	+$(MAKE) orthographe
endif

ifndef WIN32
	+$(MAKE) mod_update
endif

#	+$(MAKE) svn-commits
#	+$(MAKE) nb_users


strip-cross:
	cross-strip --strip-all *.dll

strip-win:
	strip --strip-all *.dll


lists.o: lists.c items2.h ../NewSyndrome-module.h admin-public.h
	$(CC) $(CFLAGS) -c lists.c

sondes.o: sondes.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c sondes.c

last5.o: last5.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c last5.c

talk.o: talk.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c talk.c

carac.o: carac.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c carac.c

mot_proche.o: mot_proche.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c mot_proche.c

raw.o: raw.c ../NewSyndrome-module.h admin-public.h
	$(CC) $(CFLAGS) -c raw.c

requete.o: requete.h requete.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c requete.c

pasting.o: pasting.c ../NewSyndrome-module.h pasting.h pasting_color.h
	$(CC) $(CFLAGS) -c pasting.c

pasting_tcp.o: pasting_tcp.c ../NewSyndrome-module.h pasting.h pasting_color.h
	$(CC) $(CFLAGS) -c pasting_tcp.c

pasting_gestion_dcc.o: pasting_gestion_dcc.c ../NewSyndrome-module.h pasting.h pasting_color.h
	$(CC) $(CFLAGS) -c pasting_gestion_dcc.c

pasting_color_tab.o: pasting_color_tab.c ../NewSyndrome-module.h pasting.h pasting_color.h
	$(CC) $(CFLAGS) -c pasting_color_tab.c

pasting_color.o: pasting_color.c ../NewSyndrome-module.h pasting.h pasting_color.h
	$(CC) $(CFLAGS) -c pasting_color.c	

coding.o: coding.c ../NewSyndrome-module.h md5.h crc32.h t_hash.h crc16.h urlencode.h
	$(CC) $(CFLAGS) $(OPENSSL_CFLAGS) -c coding.c

conseil.o: conseil.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c conseil.c

joinpart.o: joinpart.c ../NewSyndrome-module.h admin-public.h
	$(CC) $(CFLAGS) -c joinpart.c

sysinfo.o: sysinfo.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c sysinfo.c

pong.o: pong.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c pong.c

auth.o: auth.c ../NewSyndrome-module.h auth-public.h auth-private.h admin-public.h md5.h td_bdd.h
	$(CC) $(CFLAGS) -c auth.c

modauth.o: modauth.c ../NewSyndrome-module.h auth-public.h md5.h admin-public.h td_bdd.h
	$(CC) $(CFLAGS) -c modauth.c

topic.o: topic.c ../NewSyndrome-module.h auth-public.h admin-public.h td_bdd.h
	$(CC) $(CFLAGS) -c topic.c

alist.o: alist.c ../NewSyndrome-module.h auth-public.h admin-public.h
	$(CC) $(CFLAGS) -c alist.c

users_modes.o: users_modes.c ../NewSyndrome-module.h users_modes.h auth-public.h admin-public.h
	$(CC) $(CFLAGS) -c users_modes.c

kick.o: kick.c ../NewSyndrome-module.h auth-public.h admin-public.h
	$(CC) $(CFLAGS) -c kick.c

admin.o: admin.c ../NewSyndrome-module.h admin.h admin-public.h md5.h td_bdd.h
	$(CC) $(CFLAGS) -c admin.c

admin_gestion_module.o: admin_gestion_module.c ../NewSyndrome-module.h md5.h admin.h admin-public.h
	$(CC) $(CFLAGS) -c admin_gestion_module.c

admin_list.o: admin_list.c ../NewSyndrome-module.h admin.h admin-public.h md5.h
	$(CC) $(CFLAGS) -c admin_list.c

modes_chans.o: modes_chans.c ../NewSyndrome-module.h auth-public.h admin-public.h td_bdd.h
	$(CC) $(CFLAGS) -c modes_chans.c

nicklen.o: nicklen.c ../NewSyndrome-module.h auth-public.h td_bdd.h
	$(CC) $(CFLAGS) -c nicklen.c

uptime.o: uptime.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c uptime.c

ctcp.o: ctcp.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c ctcp.c

auto.o: auto.c ../NewSyndrome-module.h auth-public.h admin-public.h td_bdd.h
	$(CC) $(CFLAGS) -c auto.c

entree.o: entree.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c entree.c

use_opmybot.o: use_opmybot.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c use_opmybot.c

contrepeterie.o: contrepeterie.c ../NewSyndrome-module.h auth-public.h admin-public.h
	$(CC) $(CFLAGS) -c contrepeterie.c

say.o: say.c ../NewSyndrome-module.h admin-public.h
	$(CC) $(CFLAGS) -c say.c

ban.o: ban.c ../NewSyndrome-module.h auth-public.h admin-public.h
	$(CC) $(CFLAGS) -c ban.c

log.o: log.c ../NewSyndrome-module.h auth-public.h
	$(CC) $(CFLAGS) -c log.c

md5.o: md5.c md5.h
	$(CC) $(CFLAGS) -c md5.c

items2.o: items2.c items2.h
	$(CC) $(CFLAGS) -c items2.c

t_hash.o: t_hash.c t_hash.h
	$(CC) $(CFLAGS) -c t_hash.c

crc32.o: crc32.c crc32.h
	$(CC) $(CFLAGS) -c crc32.c

crc16.o: crc16.c crc16.h
	$(CC) $(CFLAGS) -c crc16.c

google.o: google.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c google.c

dico.o: dico.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c dico.c

extension.o: extension.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c extension.c

telesoir.o: telesoir.c ../NewSyndrome-module.h requete.h feedparser.h
	$(CC) $(CFLAGS) -c telesoir.c

bing.o: bing.c ../NewSyndrome-module.h requete.h feedparser.h urlencode.h
	$(CC) $(CFLAGS) -c bing.c

check_version.o: check_version.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c check_version.c

compo.o: compo.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c compo.c

tele.o: tele.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c tele.c

videolink.o: videolink.c ../NewSyndrome-module.h requete.h requete.c urlencode.h urlencode.c
	$(CC) $(CFLAGS) -c videolink.c

trad.o: trad.c ../NewSyndrome-module.h requete.h requete.c urlencode.h
	$(CC) $(CFLAGS) -c trad.c

info.o: info.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c info.c

coda.o: coda.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c coda.c
	
larva.o: larva.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c larva.c

feedparser.o: feedparser.c ../NewSyndrome-module.h feedparser.h
	$(CC) $(CFLAGS) -c feedparser.c

hlmoi.o: hlmoi.c ../NewSyndrome-module.h auth-public.h
	$(CC) $(CFLAGS) -c hlmoi.c

protect.o: protect.c ../NewSyndrome-module.h auth-public.h admin-public.h protect.h
	$(CC) $(CFLAGS) -c protect.c	

protect_liste.o: protect_liste.c ../NewSyndrome-module.h auth-public.h admin-public.h protect.h
	$(CC) $(CFLAGS) -c protect_liste.c	
	
protect_handler.o: protect_handler.c ../NewSyndrome-module.h auth-public.h admin-public.h protect.h
	$(CC) $(CFLAGS) -c protect_handler.c	

rejoin.o: rejoin.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c rejoin.c

botinfo.o: botinfo.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c botinfo.c		
   
url_mysql.o: url_mysql.c ../NewSyndrome-module.h auth-public.h module_mysql.h
	$(CC) $(CFLAGS) -c $(INC_MYSQL) url_mysql.c

quote_mysql.o: quote_mysql.c ../NewSyndrome-module.h auth-public.h module_mysql.h
	$(CC) $(CFLAGS) -c $(INC_MYSQL) quote_mysql.c

idea_mysql.o: idea_mysql.c ../NewSyndrome-module.h auth-public.h module_mysql.h
	$(CC) $(CFLAGS) -c $(INC_MYSQL) idea_mysql.c

module_mysql.o: module_mysql.c module_mysql.h
	$(CC) $(CFLAGS) -c $(INC_MYSQL) module_mysql.c

friendbot.o: friendbot.c ../NewSyndrome-module.h admin-public.h md5.h items2.h td_bdd.h
	$(CC) $(CFLAGS) -c friendbot.c

eval.o: eval.cpp ../NewSyndrome-module.h eval_pile.h
	$(CXX) $(CFLAGS) $(eval_cflags) -c eval.cpp

unmd5.o: unmd5.c ../NewSyndrome-module.h td_bdd.h
	$(CC) $(CFLAGS) -c unmd5.c

boggle.o: boggle.c boggle.h ../NewSyndrome-module.h items2.h items2.c
	$(CC) $(CFLAGS) -c boggle.c

urbandico.o: urbandico.c ../NewSyndrome-module.h  requete.h requete.c
	$(CC) $(CFLAGS) -c urbandico.c

wikipedia.o: wikipedia.c ../NewSyndrome-module.h  requete.h requete.c urlencode.h
	$(CC) $(CFLAGS) -c wikipedia.c

synonyme.o: synonyme.c ../NewSyndrome-module.h  requete.h requete.c
	$(CC) $(CFLAGS) -c synonyme.c

urlencode.o: urlencode.c ../NewSyndrome-module.h urlencode.h
	$(CC) $(CFLAGS) -c urlencode.c

sha-1.o: sha-1.c sha-1.h sha-1_internal.h
	$(CC) $(CFLAGS) -c sha-1.c
	
sha-256.o: sha-256.c sha-256.h
	$(CC) $(CFLAGS) -c sha-256.c
	
base64.o: base64.c base64.h
	$(CC) $(CFLAGS) -c base64.c

levenshtein.o: levenshtein.c levenshtein.h
	$(CC) $(CFLAGS) -c levenshtein.c
	
bind_python.o: bind_python.c ../NewSyndrome-module.h admin-public.h auth-public.h items2.h items2.c
	$(CC) $(CFLAGS) $(python_include) -c bind_python.c

discours.o: discours.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c discours.c

ssl.o: ssl.c ssl.h
	$(CC) $(CFLAGS) -c ssl.c

svn-commits.o: svn-commits.c ../NewSyndrome-module.h ssl.h
	$(CC) $(CFLAGS) -c svn-commits.c
	
nb_users.o: nb_users.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c nb_users.c
	
url_grabber_mysql.o: url_grabber_mysql.c ../NewSyndrome-module.h auth-public.h module_mysql.h
	$(CC) $(CFLAGS) -c $(INC_MYSQL) url_grabber_mysql.c
	
noforcing.o: noforcing.c ../NewSyndrome-module.h
	$(CC) $(CFLAGS) -c noforcing.c	

allcompo.o: allcompo.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c allcompo.c

orthographe.o: orthographe.cxx ../NewSyndrome-module.h admin-public.h
	$(CXX) $(CFLAGS) $(HUNPSELL_CFLAGS) -c orthographe.cxx
	
reversemd5.o: reversemd5.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c reversemd5.c

get_bot_ip.o: get_bot_ip.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c get_bot_ip.c

nioutaik.o: nioutaik.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c nioutaik.c

bugmenot.o: bugmenot.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c bugmenot.c
	
mod_update.o: mod_update.c ../NewSyndrome-module.h requete.h requete.c
	$(CC) $(CFLAGS) -c mod_update.c

allocine.o: allocine.c ../NewSyndrome-module.h requete.h requete.c urlencode.c urlencode.h
	$(CC) $(CFLAGS) -c allocine.c

slogan.o: slogan.c ../NewSyndrome-module.h requete.h requete.c urlencode.c urlencode.h
	$(CC) $(CFLAGS) -c slogan.c

feedreader.o: feedreader.c ../NewSyndrome-module.h requete.h feedparser.h td_bdd.h
	$(CC) $(CFLAGS) -c feedreader.c

#---

lists: lists.o items2.o
	$(CC) $(LDFLAGS) -o lists$(ext_mod) lists.o items2.o

sondes: sondes.o
	$(CC) $(LDFLAGS) -o sondes$(ext_mod) sondes.o

last5: last5.o
	$(CC) $(LDFLAGS) -o last5$(ext_mod) last5.o

boggle: boggle.o items2.o
	$(CC) $(LDFLAGS) -o boggle$(ext_mod) boggle.o items2.o

unmd5: unmd5.o
	$(CC) $(LDFLAGS) -o unmd5$(ext_mod) unmd5.o $(td_flag)

eval: eval.o
	$(CXX) $(LDFLAGS) $(cxx_flag) -fPIC $(CXX_LDFLAGS) -o eval$(ext_mod) eval.o 

url_mysql: url_mysql.o module_mysql.o
	$(CC) $(LDFLAGS) -o url_mysql$(ext_mod) url_mysql.o module_mysql.o $(LIB_MYSQL)

quote_mysql: quote_mysql.o module_mysql.o
	$(CC) $(LDFLAGS) -o quote_mysql$(ext_mod) quote_mysql.o module_mysql.o $(LIB_MYSQL)

idea_mysql: idea_mysql.o module_mysql.o
	$(CC) $(LDFLAGS) -o idea_mysql$(ext_mod) idea_mysql.o module_mysql.o $(LIB_MYSQL)

talk: talk.o
	$(CC) $(LDFLAGS) -o talk$(ext_mod) talk.o

carac: carac.o
	$(CC) $(LDFLAGS) -o carac$(ext_mod) carac.o

raw: raw.o
	$(CC) $(LDFLAGS) -o raw$(ext_mod) raw.o

pong: pong.o
	$(CC) $(LDFLAGS) -o pong$(ext_mod) pong.o

auth: auth.o md5.o
	$(CC) $(LDFLAGS) -o auth$(ext_mod) auth.o md5.o $(td_flag)

modauth: modauth.o md5.o
	$(CC) $(LDFLAGS) -o modauth$(ext_mod) modauth.o md5.o $(td_flag)

topic: topic.o
	$(CC) $(LDFLAGS) -o topic$(ext_mod) topic.o $(td_flag)

alist: alist.o
	$(CC) $(LDFLAGS) -o alist$(ext_mod) alist.o

users_modes: users_modes.o
	$(CC) $(LDFLAGS) -o users_modes$(ext_mod) users_modes.o

kick: kick.o
	$(CC) $(LDFLAGS) -o kick$(ext_mod) kick.o

admin: admin.o md5.o admin_gestion_module.o admin_list.o
	$(CC) $(LDFLAGS) -o admin$(ext_mod) admin.o md5.o admin_gestion_module.o admin_list.o $(td_flag)

modes_chans: modes_chans.o
	$(CC) $(LDFLAGS) -o modes_chans$(ext_mod) modes_chans.o $(td_flag)

nicklen: nicklen.o
	$(CC) $(LDFLAGS) -o nicklen$(ext_mod) nicklen.o $(td_flag)

uptime: uptime.o
	$(CC) $(LDFLAGS) -o uptime$(ext_mod) uptime.o

ctcp: ctcp.o
	$(CC) $(LDFLAGS) -o ctcp$(ext_mod) ctcp.o

auto: auto.o
	$(CC) $(LDFLAGS) -o auto$(ext_mod) auto.o $(td_flag)

entree: entree.o
	$(CC) $(LDFLAGS) -o entree$(ext_mod) entree.o

use_opmybot: use_opmybot.o
	$(CC) $(LDFLAGS) -o use_opmybot$(ext_mod) use_opmybot.o

contrepeterie: contrepeterie.o
	$(CC) $(LDFLAGS) -o contrepeterie$(ext_mod) contrepeterie.o

say: say.o
	$(CC) $(LDFLAGS) -o say$(ext_mod) say.o

ban: ban.o
	$(CC) $(LDFLAGS) -o ban$(ext_mod) ban.o

log: log.o
	$(CC) $(LDFLAGS) -o log$(ext_mod) log.o

sysinfo: sysinfo.o
	$(CC) $(LDFLAGS) -o sysinfo$(ext_mod) sysinfo.o

conseil: conseil.o
	$(CC) $(LDFLAGS) -o conseil$(ext_mod) conseil.o

larva: larva.o
	$(CC) $(LDFLAGS) -o larva$(ext_mod) larva.o

coda: coda.o
	$(CC) $(LDFLAGS) -o coda$(ext_mod) coda.o

joinpart: joinpart.o
	$(CC) $(LDFLAGS) -o joinpart$(ext_mod) joinpart.o

coding: coding.o md5.o crc32.o t_hash.o crc16.o urlencode.o sha-1.o sha-256.o base64.o levenshtein.o
	$(CC) $(LDFLAGS) $(OPENSSL_LDFLAGS) -o coding$(ext_mod) coding.o md5.o crc32.o t_hash.o crc16.o urlencode.o sha-1.o sha-256.o base64.o levenshtein.o

google: google.o requete.o
	$(CC) $(LDFLAGS) -o google$(ext_mod) google.o requete.o $(sock_flag)

dico: dico.o requete.o
	$(CC) $(LDFLAGS) -o dico$(ext_mod) dico.o requete.o $(sock_flag)

extension: extension.o requete.o
	$(CC) $(LDFLAGS) -o extension$(ext_mod) extension.o requete.o $(sock_flag)

telesoir: telesoir.o requete.o feedparser.o
	$(CC) $(LDFLAGS) -o telesoir$(ext_mod) telesoir.o requete.o feedparser.o $(sock_flag)

bing: bing.o requete.o feedparser.o urlencode.o
	$(CC) $(LDFLAGS) -o bing$(ext_mod) bing.o requete.o feedparser.o urlencode.o $(sock_flag)

tele: tele.o requete.o
	$(CC) $(LDFLAGS) -o tele$(ext_mod) tele.o requete.o $(sock_flag)

videolink: videolink.o requete.o urlencode.o
	$(CC) $(LDFLAGS) -o videolink$(ext_mod) videolink.o requete.o urlencode.o $(sock_flag)

check_version: check_version.o requete.o
	$(CC) $(LDFLAGS) -o check_version$(ext_mod) check_version.o requete.o $(sock_flag)

trad: trad.o requete.o urlencode.o
	$(CC) $(LDFLAGS) -o trad$(ext_mod) trad.o requete.o urlencode.o $(sock_flag)

compo: compo.o requete.o
	$(CC) $(LDFLAGS) -o compo$(ext_mod) compo.o requete.o $(sock_flag)

pasting: pasting.o pasting_tcp.o pasting_gestion_dcc.o pasting_color.o pasting_color_tab.o
	$(CC) $(LDFLAGS) -o pasting$(ext_mod) pasting.o pasting_tcp.o pasting_gestion_dcc.o pasting_color.o pasting_color_tab.o $(sock_flag)

info: info.o
	$(CC) $(LDFLAGS) -o info$(ext_mod) info.o

protect: protect.o protect_liste.o protect_handler.o
	$(CC) $(LDFLAGS) -o protect$(ext_mod) protect.o protect_handler.o protect_liste.o
	
rejoin: rejoin.o
	$(CC) $(LDFLAGS) -o rejoin$(ext_mod) rejoin.o

hlmoi: hlmoi.o
	$(CC) $(LDFLAGS) -o hlmoi$(ext_mod) hlmoi.o

botinfo: botinfo.o
	$(CC) $(LDFLAGS) -o botinfo$(ext_mod) botinfo.o

mot_proche: mot_proche.o levenshtein.o
	$(CC) $(LDFLAGS) -o mot_proche$(ext_mod) mot_proche.o levenshtein.o

friendbot: friendbot.o md5.o items2.o
	$(CC) $(LDFLAGS) -o friendbot$(ext_mod) friendbot.o md5.o items2.o $(td_flag)
	
urbandico: urbandico.o requete.o
	$(CC) $(LDFLAGS) -o urbandico$(ext_mod) urbandico.o requete.o $(sock_flag)

wikipedia: wikipedia.o urlencode.o requete.o
	$(CC) $(LDFLAGS) -o wikipedia$(ext_mod) wikipedia.o requete.o urlencode.o $(sock_flag)

synonyme: synonyme.o requete.o
	$(CC) $(LDFLAGS) -o synonyme$(ext_mod) synonyme.o requete.o $(sock_flag)

bind_python: bind_python.o items2.o
	$(CC) $(LDFLAGS) -o bind_python$(ext_mod) bind_python.o items2.o $(python_lib)
	
discours: discours.o
	$(CC) $(LDFLAGS) -o discours$(ext_mod) discours.o

svn-commits: svn-commits.o ssl.o
	$(CC) $(LDFLAGS) -lssl -lcrypto -o svn-commits$(ext_mod) svn-commits.o ssl.o
	
nb_users: nb_users.o
	$(CC) $(LDFLAGS) -o nb_users$(ext_mod) nb_users.o
	
url_grabber_mysql: url_grabber_mysql.o module_mysql.o
	$(CC) $(LDFLAGS) -o url_grabber_mysql$(ext_mod) url_grabber_mysql.o module_mysql.o $(LIB_MYSQL)

noforcing: noforcing.o
	$(CC) $(LDFLAGS) -o noforcing$(ext_mod) noforcing.o

allcompo: allcompo.o requete.o
	$(CC) $(LDFLAGS) -o allcompo$(ext_mod) allcompo.o requete.o $(sock_flag)
	
orthographe: orthographe.o
	$(CXX) $(LDFLAGS) $(HUNSPELL_LDFLAGS) $(cxx_flag) -fPIC -lstdc++ -o orthographe$(ext_mod) orthographe.o
	
reversemd5: reversemd5.o requete.o
	$(CC) $(LDFLAGS) -o reversemd5$(ext_mod) reversemd5.o requete.o $(sock_flag)

get_bot_ip: get_bot_ip.o requete.o
	$(CC) $(LDFLAGS) -o get_bot_ip$(ext_mod) get_bot_ip.o requete.o $(sock_flag)
	
nioutaik: nioutaik.o requete.o
	$(CC) $(LDFLAGS) -o nioutaik$(ext_mod) nioutaik.o requete.o $(sock_flag)

bugmenot: bugmenot.o requete.o
	$(CC) $(LDFLAGS) -o bugmenot$(ext_mod) bugmenot.o requete.o $(sock_flag)

mod_update: mod_update.o requete.o
	$(CC) $(LDFLAGS) -o mod_update$(ext_mod) mod_update.o requete.o $(sock_flag)

allocine: allocine.o requete.o urlencode.o
	$(CC) $(LDFLAGS) -o allocine$(ext_mod) allocine.o requete.o urlencode.o $(sock_flag)

slogan: slogan.o requete.o urlencode.o
	$(CC) $(LDFLAGS) -o slogan$(ext_mod) slogan.o requete.o urlencode.o $(sock_flag)

feedreader: feedreader.o requete.o feedparser.o 
	$(CC) $(LDFLAGS) -o feedreader$(ext_mod) feedreader.o requete.o feedparser.o $(td_flag)
